package com.tianji.learning.mapper;

import com.tianji.learning.domain.dto.LearnedSectionCountDto;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 学生课表 Mapper 接口
 * </p>
 *
 * @author xjs
 */
public interface LearningLessonMapper extends BaseMapper<LearningLesson> {

    List<LearnedSectionCountDto> getLearnedSectionsByUserId(@Param("userId") Long userId,
                                                            @Param("weekBeginTime") LocalDateTime weekBeginTime,
                                                            @Param("weekEndTime")LocalDateTime weekEndTime);
}
